<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html;charset=utf-8"%>
<%@page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>生成订单 - 当当网</title>
<link href="${pageContext.request.contextPath}/css/login.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/page_bottom.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/address.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.11.1.js"></script>
	<script type="text/javascript">
		$(function () {
			$("input[name='addressid']").click(function () {
			    $("li").prop("class","address-wrap")
				$(this).parent().parent().prop("class","address-wrap selected")
				$("li div").html("")
				$(this).parent().prev().html("<span class='marker-tip'>寄送至</span>")
            })
        })
	</script>
</head>
<body>
	<%@include file="../common/head1.jsp"%>
	<div class="login_step">
		生成订单骤: 1.确认订单 ><span class="red_bold"> 2.填写送货地址</span> > 3.订单成功
        <span style="float:right"> <a href="${pageContext.request.contextPath}/selectAllAddress.do">地址管理<a/></span>
    </div>
	<div class="fill_message">
		 
		 <form action="${pageContext.request.contextPath}/addOrder.do" method="post">
			 <div class="address-wrap">
				<ul class="address-list">
                <c:forEach items="${addressList}" var="add">
					<li ${add.status==1?"class='address-wrap selected'":"class='address-wrap'"}>
                            <div class="addressBox">
								<c:if test="${add.status==1}">
							    	<span class="marker-tip">寄送至</span>
								</c:if>
						    </div>
						<label class="addressInfo">
							<input type="radio" name="addressid" value="${add.address_id}" <c:if test="${add.status==1}">checked="checked"</c:if> />
							<span class="user-address">
								<span>${add.receive_address}</span>
								<span>（</span>
								<span>${add.address_name}</span>
								<span> 收）</span>
								<em>${add.receive_mobile}</em>
							</span>
						</label>
					</li>
                </c:forEach>

					
				</ul>
			</div>
			
			<div class="login_in">
				<input
					id="btnClientRegister" class="button_1" name="submit" type="submit"
					value="下一步" />
			</div>
			
		</form>
	</div>
	<%@include file="../common/foot1.jsp"%>
</body>
</html>

